package com.zygh.interactiveplatform.module.controller;


import com.zygh.interactiveplatform.common.anno.PcLog;
import com.zygh.interactiveplatform.common.constant.SwaggerTagConst;
import com.zygh.interactiveplatform.common.domain.ResponseDTO;
import com.zygh.interactiveplatform.module.service.DataAccessTop10Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lee
 * @since 2021-02-02
 */
@RestController
@RequestMapping("/data-access-top10")
@Api(tags = {SwaggerTagConst.Admin.MANAGER_DATAACCESSTOP10})
public class DataAccessTop10Controller {
    @Resource
    private DataAccessTop10Service dataAccessTop10Service;

    @ApiOperation(value = "数据接入情况TOP10", notes = "数据接入情况TOP10")
    @GetMapping("findDataAccessTop10AllDay")
    @PcLog(logType = "1", module = SwaggerTagConst.Admin.MANAGER_DATAACCESSTOP10, content = "数据接入情况TOP10")
    public ResponseDTO findDataAccessTop10AllDay() {
        return dataAccessTop10Service.findDataAccessTop10AllDay();
    }
}
